package com.example.demo.fruits.strategy;


public class DisCountStrategyA implements DisCountStrategy {
    @Override
    public double cost(double totalPrice) {
        if(totalPrice>=100){
             totalPrice-=10;
        }
        return totalPrice;
    }
}
